const fs = require('fs');
const path = require('path');
// fs.mkdirSync('./tmp');
// fs.readFileSync('./tmp/abc')
// console.log('----------')

const dir = `/Volumes/视频/毛骗/毛骗第2季`;
const arr = fs.readdirSync(dir);
console.log(arr);

arr.forEach((str) => {
  // const aa = str.replaceAll('毛骗', '毛骗1-');
  // console.log(aa);
  const aa = '毛骗2-' + str;
  fs.renameSync(path.join(dir, str), path.join(dir, aa));
});
